Files
Add a file to MDM for usage in other API.
End Points
Attribute
content_type
string
Content Type :
| File Extension | Platform | Content type |
|---|---|---|
| apk | Android | application/vnd.android.package-archive |
| ipa | iOS | application/x-itunes-ipa |
| appxbundle | Windows | application/zip |
| xap | Windows | application/zip |
| appx | Windows | application/zip |
| msi | Windows | application/x-ms-installer |
| msix | Windows | application/zip |
file_name
string
Name of File
file_id
long
Unique Identifier for the file
expiry_time
long
Timestamp until when the file is valid
content_length
integer
Length of the file (in bytes)
Upload a file to MDM
Upload a file
oauthscope : MDMOnDemand.MDMDeviceMgmt.CREATE
POST - /api/v1/mdm/files
Header
Content-Disposition
string
(Required)
Name of file with extension
Arguments
stream
bytestream
(Required)
bytestream of the file
Upload a file to MDM with Module Configuration
File upload to server with module configuration. Upload image, audio, video, certificate and many more.
oauthscope : MDMOnDemand.MDMDeviceMgmt.CREATE
POST - /emsapi/files
Header
Module
string
(Required)
Module configuration of which the file is going to be used.
eg. MDM_PROFILES_IMAGES for images in profiles creation and modification.
Few modules are listed here. you can find the module configurations in the respective APIs
eg. MDM_PROFILES_IMAGES for images in profiles creation and modification.
Few modules are listed here. you can find the module configurations in the respective APIs
- MDM_PROFILES_IMAGES
- MDM_APP_MGMT
- MDM_CERTIFICATES
- MDM_CUSTOM_PROFILE
- MDM_CONTENT_MGMT
- MDM_OS_UPDATE_POLICY
Request Body
string - bytestream
(Required)
In that Multipart-from request the key should be "file" and the value should be the file content(binary).